<?php

namespace Controller;

class TopicListController
{
	//Parametrar: Instanser av klasserna TopicList & TopicView
	//Returnerar: HTML Sträng - Lista av samtliga topic objekt
	public function DoControll(\Model\TopicList $tl, \View\TopicView $tv)
	{
		$topics = $tl->getAllTopics();				
			
		$ret = $tv->RenderHeader(\View\TopicView::MOST_RECENT_TOPICS);
			
		$ret .= $tv->RenderTopicList($topics);
			
		return $ret;
	}
}

?>